<template>
  <div id="routerFather" class="">
    <div @click="_goto" class="routerFather" style="font-size: .3rem;text-align: center;padding:.5rem 0;">routerFather</div>

    <transition name="router-slid" mode="out-in">
      <router-view></router-view>
    </transition>
  </div>
</template>

<script>
  export default {
    name: 'routerFather',
    data() {
      return {}
    },
    mounted() {

    },
    methods: {
      _goto(){
        this.$router.push('/router/routerChildren');
      }
    }
  }
</script>

<style lang="scss" scoped>

  .routerFather{
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9;
    height: 100%;
    background-color: #fff;
  }

  .router-slid-enter-active, .router-slid-leave-active {
    transition: all .3s;
  }
  .router-slid-enter, .router-slid-leave-active {
    transform: translate(100%, 0);
    opacity: 0;
  }

</style>
